package com.ks.user.service;

import com.ks.core.base.OperationContext;
import com.ks.core.dto.SearchCriteriaBase;
import com.ks.user.controller.dto.PowerResurceRequest;
import com.ks.user.controller.dto.PowerRoleRequest;
import com.ks.user.controller.dto.RoleRequest;
import com.ks.user.controller.dto.UserRoleRequest;
import com.ks.user.entity.ApBase;
import com.ks.user.entity.PowerResurce;
import com.ks.user.entity.PowerRole;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author kingdee123
 * @since 2020-11-30
 */
public interface IPowerRoleService extends IService<PowerRole> {

    Map<String, Object> addPowerRole(OperationContext context, PowerRoleRequest powerRoleRequest);

    Map<String, Object> updatePowerRole(OperationContext context, PowerRoleRequest powerRoleRequest);

    Map<String, Object> selectPowerRole(OperationContext context, SearchCriteriaBase searchCriteriaBase);

    int deletePowerRole(OperationContext context, PowerRoleRequest powerRoleRequest);

    int  addRole(OperationContext context, RoleRequest roleRequest);

    int setUserRole(OperationContext context, UserRoleRequest userRoleRequest);

    /**
     * 角色移除接口
     * @param context
     * @param
     * @return
     */
    int moveEmpower(OperationContext context, List<Integer> ids,int iRoleId);
}
